<!DOCTYPE html>
<html>
<head>
	<title>
		
	</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="__CSS__/main.css">
	<script src="__JS__/jquery-1.11.3.js"></script>
	<script src="__JS__/index.js" type="text/javascript"></script>
	<script src="__JS__/frame.js" type="text/javascript"></script>
    <script charset="utf-8" src="__EDITOR__/kindeditor-min.js"></script>
	<script charset="utf-8" src="__EDITOR__/lang/zh_CN.js"></script>
    <script>
					var editor;
					KindEditor.ready(function(K) {
					editor = K.create('textarea[name="content"]', {
					allowFileManager : true
						});
			
					});
	</script>
		<script src="__JS__/tishi.js" type="text/javascript"></script>

	<!-- <link href="__CSS__/normalize.css" rel="stylesheet" type="text/css"> -->
    <link rel="stylesheet" href="__CSS__/animate.min.css">
    <link rel="stylesheet" href="__CSS__/jquery.gDialog.css">
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
	<script src="__JS__/jquery.gDialog.js"></script>	
<style>
button { border:0;}
.container { margin:50px auto; max-width:728px;text-align:center;font-family:Arial;}
.btn {background-color:#ED5565; color:#fff; padding:20px; margin:10px 30px; border-radius:5px; border-bottom:3px solid #DA4453;}
</style>
</head>
<body>
<!--未定义-->
	<div id="head" class="header">
		<div class="logo">
        <a href="__MODULE__/Index/index" target="_self"></a>
		</div>
		<div class="info">
			<ul>
            	<li><a href="__MODULE__/Index/index">返回首页</a></li>
                <li><a href="#">修改密码</a></li>
                 <li><a href="#">个人设置</a></li>
            </ul>

		</div>
	</div>
	<div class="clear"></div>
		<div class="nav" id="main">

      <div id="guid">
			<p>管理控制台</p>
			<ul id="accordion" class="accordion">
		<li>
			<div class="link"><i class="fa fa-paint-brush"></i>云网站<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu"  style="display:block;">
						<li><a href="__MODULE__/Company/index" target="_self">公司设置</a></li>
						<li><a href="__MODULE__/Product/index" target="_self">产品设置</a></li>
						<li><a href="__MODULE__/Gname/index" target="_self">广告设置</a></li>
						<li><a href="__MODULE__/Anli/index" target="_self">客户案例</a></li>
						<li><a href="__MODULE__/team/index">团队风采</a></li>
						<li class="tishi_1"><a href="#">留言查看</a></li>
						<li><a href="__MODULE__/Mainsite/index" target="_self">三屏主站</a></li>
						<li class="tishi_1"><a href="#">云网站浏览</a></li>

			</ul>

		</li>
		<li>
			<div class="link"><i class="fa fa-code"></i>云搜索<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
				<li class="tishi_1"><a href="#" target="_self">搜索发布</a></li>
				<li class="tishi_1"><a href="#">搜索查看</a></li>
				<li class="tishi_1"><a href="#">搜索展示</a></li>
				<li class="tishi_1"><a href="#">行业分类</a></li>
				<li class="tishi_1"><a href="#">草稿箱</a></li>
				<li class="tishi_1"><a href="#">搜索发布必读</a></li>


			</ul>
		</li>
		
		<li><div class="link"><i class="fa fa-globe"></i>云客服<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#" target="_self">QQ客服在线</a></li>
						<li class="tishi_1"><a href="#" target="_self">微信二维码</a></li>
						<li class="tishi_1"><a href="#" target="_self">二维码生成</a></li>
						<li class="tishi_1"><a href="#">优快推云客服</a></li>
						<li class="tishi_1"><a href="#">云客服管理中心</a></li>
						

			</ul>
		</li>
		<li><div class="link"><i class="fa fa-globe"></i>新闻软文<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">新闻软文发布</a></li>
						<li class="tishi_1"><a href="#">新闻APP发布</a></li>
						


			</ul>
		</li>
		<li><div class="link"><i class="fa fa-globe"></i>云推广<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">新浪微博推广</a></li>
						<li class="tishi_1"><a href="#">百度知道</a></li>
						<li class="tishi_1"><a href="#">论坛资源推广</a></li>
			</ul>
		</li>
		<li>
			<div class="link"><i class="fa fa-mobile"></i>云应用<i class="fa fa-chevron-down">
			</i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">代写软文</a></li>
						<li class="tishi_1"><a href="#">云搜索代发</a></li>
						<li class="tishi_1"><a href="#">关键词匹配</a></li>
						<li><a href="buySave.html">在线充值</a></li>
			</ul>
		</li>
	</ul>
		</div>
        <div id="main_show">
       <p id="web_gg">公告：欢迎您进入优快推推广平台。企业要推广，就用优快推<span>优快推V61.0</span></p> 
       </div>
<div id="could_web" style="display:block;">




<div id="product_set" class="product1" style="display:block;">
					<div class="set_head1">
						<ul>
							<!-- <li>添加分类</li>
							<li>添加产品</li>
							<li class="logo_up" class="btn_color">所有产品</li>
							<li>分类管理</li> -->
							<a href='__MODULE__/Product/index'>添加分类</a>
							<a href='__MODULE__/Product/proadd'>添加产品</a>
							<a href='__MODULE__/Product/proindex' style="background-color:rgb(151,31,32);">所有产品</a>
							<a href='__MODULE__/Product/typeindex'>分类管理</a>
						</ul>
					</div>
				<div id="product_information" class="set2" style="display:none;"><!--添加分类-->
						<div class="prompt">
							<h6>提醒一下：</h6>
							<p>1、每一步都填写完整了，公司的品牌才能更好的传播出去哦，别忘了
							</p>
							<p>
							2、<span>*</span>【星号】为必填选项，要认真填写	
							</p>
							<p>
							4、企业最多添加50条产品信息，如需发宣传、广告信息、产品信息、请在云搜索里发布！
							</p>
						</div>
						<div class="Increase">
							<form method="post" class="fenlei" action="">
								<div class="Increase_txt">
									<ul>
										<li>分类名称<span>*</span></li>
										<li>排&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序<span>*</span></li>
									</ul>
								</div>
								<div class="Increase_input">
									<li><input type="text" name='name' placeholder='请正确填写分类名'></li>
									<li><input type="text" name='sort'></li>
									<input class="product_button submit_btn" type="submit" value="添加提交">
								</div>
								<iframe src="about:blank" style="display:none;" name="incra_fenlei" id="incra_fenlei"></iframe>
								<script type="text/javascript">
								$(".fenlei").attr("target","incra_fenlei")

								</script>
							</form>
						</div>
				</div>

				<div class="Increase_product set2" style="display:none;">
					<div class="Inc_form">
						<form name="tianjia" id="tianjia" method="post">
							<div class="Increase_txt">
								<ul>
									<li>剩余数目<span>*</span></li>
									<li>产品名称<span>*</span></li>
									<li>关键词<span>*</span></li>
									<li>产品分类<span>*</span></li>
									<li>产品图片<span>*</span></li>
									<li>排序<span>*</span></li>
									<li>产品描述<span>*</span></li>
									
								</ul>
							</div>
							<div class="Increase_input">
								<ul>
									<li></li>
									
									<li><input type="text"></li>
									<li class="Ii">
									<input type="text"><span>-</span>
									<input type="text"><span>-</span>
									<input type="text">
									</li>
									<li>
										<select id="increase_select">
											<option>--请选择--</option>
											<option>广告策划</option>
											<option>设计类</option>
										</select>
									</li>
									<li class="picture_file"><input type="file"></li>
									<li><input type="text"></li>
									<li>
										<textarea name="content" style="width:600px;height:300px;visibility:hidden;"></textarea>
									</li>
									<li>
									<input id="incra_btn" type="submit" class="submit_btn" value="提交">
									<!-- <iframe src="about:blank" style="display:none;" name="incraframe" id="incraframe"></iframe>
									</li> -->
								</ul>
								<script type="text/javascript">
								$("#tianjia").attr("target","incraframe");
								</script>
							</div>
							
						</form>		
					</div>
				</div>
                    
                <div id="all_product" class="set2" style="display:block;">
					<div class="all_product_btn">
						<p>
						<a href='__MODULE__/Product/peodelmore'><input class="all_btn" id="pro_dele" type="button" value="批量删除"></a>
						
						<input class="all_txt" type="text">
						<input class="all_btn" type="button" value="查找">
						</p>
					</div>
					<div id="all_pro">
						<div class="tab_head">
							<p>全选</p>
							<p>标题</p>
							<p>所有分类</p>
							<p>产品图片</p>
							<p>排序</p>
						</div>
						<table id="pro_table">
						<volist name="list" id='list'>
								<tr>
									<td><input type='checkbox' name='id' value="{$list['id']}"></td>
									<td>{$list['title']}</td>
									<td>{$list['groupname']}</td>
									<td class='img1'><img src="{$list['path']}" style='width:100px;height:80px;'>
										<a id="img_add" class="img_ad" value="{$list['id']}" style='display:none;'>添加图片</a>
									</td>
									
									<script type="text/javascript">
									
										btn_img=$(".img_ad");
										// alert($(".img_ad").attr('value'));
										for(var i=0;i<btn_img.length;i++){
											btn_img[i].onclick=function(){
												var proid = $(this).attr('value');
												// alert(proid);
												$.ajax({
													type:'POST',
													dataType:"json",
                                                    data:{proid},
													url:'__MODULE__/Product/session',
													success:function(result){
														
													}
												});
												$("#div").show();											
											}

										}
										$(".btn").onclick=function() {
											$("#div").hide();
										}
										

									</script>
									<td>{$list['sort']}</td>
								</tr>
							</volist>	
						</table>
					</div>
					<script type='text/javascript'>
						
						$(document).ready(function(){
							var src = $(".img1");
				            $('.img1').each(function(i){
				                var img = $(this).children('img').attr('src');
				                // alert(img);
				                if(img == false){
				                    $(this).children('img').remove();
				                    $(this).children('a').show();
				                }else{
				                    $(this).children('a').remove();
				                }


				            });
						});

					</script>

					<script type='text/javascript'>

						$(document).ready(function(){
							var prolist =  new Array(); 
							var button = $("#pro_dele");
							button.click(function (){
								
								var checkNum = $("tr>td input:checked").length;
								

								// alert(checkNum);
								if(checkNum == 0) { 
							        alert("请选择至少一项！"); 
							        return; 
							    } 
							    // 批量选择 
						        if(confirm("确定要删除所选项目")) { 

							        
							        $("tr>td input:checked").each(function() {
							        	prolist.push($(this).val());
							        	// alert($(this).val());	
						        	});
						        	// alert(checkList);
							    }
								$.ajax({ 
							          type: "post", 
							          url: "__MODULE__/Product/prodelmore",
							          data: {'prolist':prolist},
							          dataType: 'text', 
							          success: function(result) { 
							          		// alert(result);
								          $("tr>td input:checked").remove(); 
								          // window.location.reload(); 
							          }
							    });
							});
						});
				</script>
				</div>

				<!--分类管理-->
				<div id="sort" class="set2">
					<p><input type="button" value="批量删除"></p>
					<div class="quanxuan"><!--分类管理列表-->
						<p>全选</p>
						<p>产品分类名称</p>
						<p>排序</p>
						<table id="Incras">
							
						</table>
					</div>
				</div>
		        <div id="tuiguang">
					<div class="xinlang product1">
						<p> ！</p>
					</div>
					<div class="baidu product1">
						<p> </p>
					</div>
					<div class="luntan product1">
						<p> </p>
					</div>
				</div>


					<div id='div'>
											<link rel="stylesheet" type="text/css" href="__CSS__/common.css">
										    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
										    <div class="main_title">
										        <h2>添加图片</h2>
										    </div>

										    <!-- <form action="{:U()}" method="post" class="form-horizontal"> -->
										        <div class="controls">
										            <!-- <label class="item-label">产品图标</label> -->
										            <input type="file" id="upload_picture">
										         	<div class="upload-img-box">
										            <notempty name="info['icon']">
										                <div class="upload-pre-item"><img src="{$info.icon|get_cover='path'}"/></div>
										            </notempty>
										            </div>
										            <a class="btn" href="__MODULE__/Product/proindex">确定</a>
										        </div>

										        <script type="text/javascript">
										        //上传图片
										        /* 初始化上传插件 */
										        $("#upload_picture").uploadify({
										            "height"          : 30,
										            "swf"             : "__STATIC__/uploadify/uploadify.swf",
										            "fileObjName"     : "download",
										            "buttonText"      : "上传图片",
										            "uploader"        : "{:U('Product/uploadPicture',array('session_id'=>session_id()))}",
										            "width"           : 120,
										            'removeTimeout'   : 1,
										            'fileTypeExts'    : '*.jpg; *.png; *.gif;',
										            "onUploadSuccess" : uploadPicture,
										            'onFallback' : function() {
										                alert('未检测到兼容版本的Flash.');
										            }
										        });
										        function uploadPicture(file, data){
										            var data = $.parseJSON(data);
										            var src = ' ';
										            if(data.status){
										                $("#icon").val(data.id);
										                src = data.url || data.path;
										                // $("#icon").parent().find('.upload-img-box').html(
										                //     '<div class="upload-pre-item"><img src="' + src + '"/></div>'
										                // );
										            } else {
										                updateAlert(data.info);
										                setTimeout(function(){
										                    $('#top-alert').find('button').click();
										                    $(that).removeClass('disabled').prop('disabled',false);
										                },1500);
										            }
										        }
										    </script>
									</div>

									<style type="text/css">
										#div{
											display: none;
											position: absolute;
											top:50%;
											left: 50%;
											margin-left: -245px;
											margin-top: -25px;
											width: 25%;
											height: 70%;
											background-color:rgb(254,248,208);
										}
										#div .btn{
											position: inline-block;
											padding: 5px 25px;
											width: 120px;
											height: 30px;
											color: #fff;
											background-color: rgb(39,174,96);
											line-height: 30px;
											text-align: center;
											border-radius: 3px;
											margin-left: 72px;
										}
										.main_title h2{text-align: center;}
										.main_title h2 b{display: block; float: right; cursor: pointer;}
										#upload_picture{margin:30px 54px 15px 54px;}
									</style>


		

	</div>
		
</body>
</html>
